﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QGraphicsScene>
#include <QLabel>
#include <QMainWindow>

namespace Ui
{
class MainWindow;
} // namespace Ui

class MainWindow : public QMainWindow
{
    Q_OBJECT

  private:
    QGraphicsScene *scene;

    QLabel *labViewCord;
    QLabel *labSceneCord;
    QLabel *labScenePosCord;
    QLabel *labPosCord;
    QLabel *labItemCord;

    void iniGraphicsSystem();

  protected:
    void resizeEvent(QResizeEvent *event) override;

  public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow() override;

  private slots:
    void on_mouseMovePoint(QPoint point);
    void on_mouseClicked(QPoint point);
    void on_sceneCenter();
    void on_sceneLeft();
    void on_sceneRight();
    void on_sceneRotation();

  private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
